package com.expression4j;

import fr.expression4j.core.Expression;
import fr.expression4j.factory.ExpressionFactory;

public class Expression4jTest {
	
	public static void main(String[] args) {
		String expressionString = "=1 + 3";
		try {
			Expression expression = ExpressionFactory.createExpression(expressionString);
			double realValue = expression.evaluate(null).getRealValue();
			System.out.println(realValue);
		}
		catch (Exception e) {
			System.out.println(e);
		}
	}

}
